﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.ComponentModel.DataAnnotations;

namespace TestMvc3.Models
{
    [Bind(Exclude="AlbumId")]
    public class Album
    {
        public int AlbumId { set; get; }

        public int GenreId { set; get; }

        public int ArtistId { set; get; }

        [Required(ErrorMessage="Title can not be null")]
        public string Title { set; get; }

        public Genre Genre { set; get; }

        public Artist Artist { set; get; }

        public decimal Price { set; get; }

        public string AlbumArtUrl { set; get; }

        public int Age { set; get; }
        
    }
}